﻿using InnoWeb.CEND.Core.Model.Videos;
using InnoWeb.CEND.Data.Mapping.BaseMapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InnoWeb.CEND.Data.Mapping.Video
{
    public class VideoContentMapping : BaseMappingConfiguration<VideoContents, int>
    {
        public VideoContentMapping()
        {
            this.Property(a => a.ShortDescription).IsRequired().HasMaxLength(300);
            this.Property(a => a.ShortDescriptionTR).IsRequired().HasMaxLength(300);
            this.Property(a => a.VideoUrl).IsOptional();
            this.Property(a => a.Name).IsRequired().HasMaxLength(100);
            this.Property(a => a.NameTR).IsRequired().HasMaxLength(100);
        }
    }
}
